/**
 * @Author: likang xie
 * @Date: 2019-11-06 17:11:52
 * @Usage 公共模块接口列表
 */

import request from "@/utils/request";

let extra = {
  showLoading: false
};

// 首页数据
export let infoIndex = params => request.get("/doc/index", params);
    
// 首页轮播
export let listSwiper = params => request.get("/doc/user/slideInfo", params);

// 分类列表
export let listClassify = params =>
  request.get("/doc/get_category_list", params, extra);

  

// 筛选列表
export let listFilter = params =>
  request.get("/doc/screen_list", params, extra);
//筛选2
export let category = params =>
  request.get("/doc/get_configure", params, extra);


export let getconfig = params =>
  request.get("/doc/getOssAuth", params, extra);

// 分类列表
export let userSkillson = params =>
request.get("/doc/skill/userSkills", params, extra);


//筛选提交
export let skillSave = params =>
  request.post("/doc/my/skill_save", params, extra);

//   //筛选提交 new
// export let userSkillson = params =>
// request.get("/doc/skill/userSkills", params, extra);

// 获取腾讯IM所需要的用户签名
export let infoImSign = params =>
  request.post("/doc/auth/getSign", params, {
    ...extra,
    showErrorToast: false
  });

// 获取各个协议内容
export let infoProtocol = params => request.get("/doc/treaty", params);

// 热门搜索
export let listHotCate = params => request.get("/doc/hotCate", params, extra);

// 获取未读消息数
export let messageNum = () =>
  request.get("/doc/user/messageNum", "", {
    ...extra,
    showErrorToast: false
  });

// 获取配置信息
export let getConfigInfo = params =>
  request.get("/doc/config", params, {
    ...extra,
    showErrorToast: false
  });
